/**
 *  ############################
 *  #                          #
 *  #  JavaScript Programming  #
 *  #                          #
 *  #    (C) Adam Pócs 2010    #
 *  #                          #
 *  #   royaljerry@gmail.com   #
 *  #                          #
 *  ############################
*/

// Get arguments
var cArgs =                  WScript.Arguments;
// Get current filler character
var fChar =                  cArgs(0);
// Get current column number
var cCurrent =               cArgs(1);
// Get end column number
var cEnd =                   cArgs(2);

// Get the number of the multiplication
var rNum =                   cEnd - cCurrent;

// Multiply a string by a given number
function mStr(num)
{
	var cStr =                 this;
	var rStr =                 "";
	for (var i = 0; i < num; i++) {rStr += cStr;}
	return(rStr);
}

String.prototype.mStr =      mStr;

// Get filler string only if we're not beyond the end column
if (rNum > 0)
{
	var rStr = fChar.mStr(rNum)
}
else
{
	rStr = "";
}

// Print filler string
WScript.StdOut.Write(rStr);
